﻿<!DOCTYPE html>
<html>
<head>
    <title>优惠活动</title>
</head>
<body>
    <div>
        <section data-role="page" id="promotions_main">
            <div data-role="content" data-theme="c" id="promotions_content">
                <div style="text-align:center;height:30px;line-height:30px;display:none;" runat="server" id="msg">暂无优惠活动</div>
                <asp:Repeater ID="rptPromotions" runat="server">
                    <ItemTemplate>
                        <div>
                            <p><strong>标题：</strong><%#Eval("PromotionsTitle")%></p>
                            <p><strong>优惠日期：</strong><%#this.getEffectiveTime(Eval("PromotionsType"),Eval("PromotionsStart"),Eval("PromotionsEnd")) %></p>
                            <p><strong>对象：</strong><%#this.getMemberObj(Eval("PromotionsMemLevel"))%></p>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            
            <footer data-role="footer" data-position="fixed" id="promotions_footer">
                <div data-role="navbar" id="nav-glyphish-example">
                <ul>
                    <li><a href="#index" data-load="index.aspx" data-icon="custom" id="site" class="ui-btn-active">商家网站</a></li>
                    <li><a href="#goodlist" data-icon="custom" id="buy" data-load="goodlist.aspx">商品购买</a></li>
                    <li><a href="#membershipcard" data-load="membershipcard.aspx" data-icon="custom"  id="card">会员卡</a></li>
                    <li><a href="#giftlist" data-load="giftlist.aspx" data-icon="custom" id="convert">积分兑换</a></li>
                </ul>
            </div>
            </footer>
        </section>
    </div>
</body>
</html>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="promotions.aspx.cs" Inherits="promotions" EnableViewState="false" %>